﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" CodeBehind="answers.aspx.cs" Inherits="GameAdmin.Pages.answers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="plcHolderContent" runat="server">
    <h2>Odpovědi na otázku id: <asp:Literal ID="literalId" runat="server" /></h2>

    <div id="toolbox">
        <asp:HyperLink ID="lnkNewAnswer" NavigateUrl="~/answer/question-" Text="Přidat novou odpověď" runat="server" />
    </div>

    <asp:GridView ID="gw" CssClass="gw" AlternatingRowStyle-CssClass="alternate" HeaderStyle-CssClass="header" ClientIDMode="Predictable" AutoGenerateColumns="false" runat="server">
        <Columns>
            <asp:BoundField HeaderText="ID" DataField="id" />
            <asp:BoundField HeaderText="Mark" DataField="mark" />
            <asp:BoundField HeaderText="Correct" DataField="correct" />
            <asp:CommandField ShowEditButton="true" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton runat="server" Text="Odstranit" CommandName="Delete" CommandArgument='<%# Eval("id") %>' OnClientClick="return confirm('Opravdu odstranit?');" />               
                </ItemTemplate>
            </asp:TemplateField> 
        </Columns>
    </asp:GridView>

    <asp:HyperLink NavigateUrl="~/questions" Text="Zpět na seznam otázek" runat="server" />
</asp:Content>
